
#ifndef __DRV_ADC_H_
#define __DRV_ADC_H_

#include <stdint.h>

// int drv_adc_get(uint8_t ch_start, uint8_t ch_length, uint16_t *data);
// uint16_t drv_adc_get_one_channel(uint8_t ch);
int drv_adc_routine_for_pwm(const uint8_t *ch_arr, uint8_t ch_num,
                            uint32_t sample_time);
int drv_adc_routine_for_com(const uint8_t *ch_arr, uint8_t ch_num,
                            uint32_t sample_time);

uint16_t drv_adc_get_pwmi_ad(uint8_t ch);
uint16_t drv_adc_get_com_ad(uint8_t ch);
uint16_t drv_adc_get_ai(uint8_t ch);
extern void adc_multiplexing(void);
// int drv_adc_init(const uint8_t *ch_arr, uint8_t ch_num, uint32_t
// sample_time); int drv_adc_routine_parallel_init(
//     const uint8_t *adc0_ch, uint8_t adc0_num,
//     const uint8_t *adc1_ch, uint8_t adc1_num,
//     const uint8_t *adc2_ch, uint8_t adc2_num,
//     uint32_t sample_time);
// void drv_adc_start_sample(void);
#endif
